package com.ccsu.joysport.repository;
import com.ccsu.joysport.entity.ClubApplication;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ClubApplicationRepository extends JpaRepository<ClubApplication, Long> {
    List<ClubApplication> findByClubId(String clubId);
    Optional<ClubApplication> findByClubIdAndStudentId(String clubId, String studentId);
    List<ClubApplication> findByStudentId(String studentId);

}